#!/bin/bash

read -t 30 -p "please input a filename:" file 
if [ -z "$file" ]
	then
		echo "please some"
		exit 11
	elif [ ! -e "$file" ]
	then
		echo "please file name2"
		exit 22
	elif [ -f "$file" ]
	then
		echo "$file is file"
	elif [ -d "$file" ]
	then
		echo "$file is d"
	else 
		echo "$file is outher"
fi
	
